﻿<phone:PhoneApplicationPage 
    x:Class="ThessalonikiGuide.GPS"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:phone="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone"
    xmlns:shell="clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    xmlns:toolkit ="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone.Controls.Toolkit"
    mc:Ignorable="d" d:DesignWidth="480" d:DesignHeight="696"
    FontFamily="{StaticResource PhoneFontFamilyNormal}"
    FontSize="{StaticResource PhoneFontSizeNormal}"
    Foreground="{StaticResource PhoneForegroundBrush}"
    SupportedOrientations="PortraitOrLandscape" Orientation="Portrait"
    shell:SystemTray.IsVisible="True" xmlns:my="clr-namespace:Microsoft.Phone.Controls.Maps;assembly=Microsoft.Phone.Controls.Maps">

    <Grid x:Name="LayoutRoot" Background="Transparent">
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="*"/>
        </Grid.RowDefinitions>

        <StackPanel x:Name="TitlePanel" Grid.Row="0" Margin="12,17,0,28">
            <TextBlock x:Name="ApplicationTitle" Text="ThessalonikiNavigator" Style="{StaticResource PhoneTextNormalStyle}"/>
        </StackPanel>

        <Grid x:Name="ContentPanel" Margin="24,50,12,12" Grid.RowSpan="2">
            <my:Map CredentialsProvider="AgDfwlDwMV-47tsOm-_p_MP-qAfR5L_tap4M7PMF3iiu0tNYMlwyDPShiro3uq7C" Mode="Aerial" Margin="6" Name="map1" Height="602" />
        </Grid>
    </Grid>
    <phone:PhoneApplicationPage.ApplicationBar>
        <shell:ApplicationBar>
            <shell:ApplicationBarIconButton IconUri="/icons/appbar.me.png" Text="Εγώ" Click="CentreMe"/>            
            <shell:ApplicationBarIconButton IconUri="/icons/appbar.next.rest.png" Text="Προορισμός" Click="CentreDestination"/>
            <shell:ApplicationBarIconButton IconUri="/icons/appbar.view.png" Text="Μόνο Δρόμοι" Click="button1_Click"/>
            <shell:ApplicationBarIconButton Click="ApplicationBarIconButton_Click" IconUri="/icons/appbar.questionmark.rest.png" Text="ρυθμίσεις"/>
        </shell:ApplicationBar>
    </phone:PhoneApplicationPage.ApplicationBar>

</phone:PhoneApplicationPage>